const initialState = {
    data:[
        // {
        //     value: 1,
        //     label: "wqweq",
        //     isLeaf: true,
        //     children: [
        //         {
        //             label: 'you can not see',
        //             value: '1',
        //         },
        //     ],
        // },
        // {0: "语种", 1: "风格", 2: "场景", 3: "情感", 4: "主题"},
        // {name: "影视原声", resourceCount: 1000, imgId: 0, imgUrl: null, type: 0}
        
    ]
}

const list = (state=[],action)=>{
    let {type,payload} = action
    switch(type){
        case "GET_LIST":
            return [payload]
        
        default:
            return state
    }
}
export default (state=initialState,action)=>{
    return {
        data:list(state.data,action)
    }
}